class AddColumnsForEvents < ActiveRecord::Migration
  def self.up
    add_column :events,:indentifier,:string,:default=>'default'
    add_column :events,:priority,:integer,:default=>3 #from 0 to 5
    add_column :events,:user_id,:integer
    add_column :events,:detail,:text
  end

  def self.down
    remove_column :events,:indentifier
    remove_column :events,:priority
    remove_column :events,:user_id
    remove_column :events,:detail
  end
end
